#ifndef MAP_H
#define MAP_H
#include <QPixmap>

class map
{
public:
    //构造函数
    map();

    //地图滚动坐标计算
    void mapPosition();
//    //get real time distance
//    int getDistance();

public:
    QPixmap m_map1;
    QPixmap m_map2;

    //地图Y轴坐标
    double m_map1_posY;
    double m_map2_posY;

    //地图滚动幅度
    double m_scroll_speed;
    //the distance of jouney
    int pixelDistance=0;
    int distance=0;
};

#endif // MAP_H
